home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / misc / gs261src.zip / tc.mak < prev    next >
Text File  |  1993-05-20  |  7KB  |  215 lines

  1. #    Copyright (C) 1989, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  2. #
  3. # This file is part of Ghostscript.
  4. #
  5. # Ghostscript is distributed in the hope that it will be useful, but
  6. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. # to anyone for the consequences of using it or for whether it serves any
  8. # particular purpose or works at all, unless he says so in writing.  Refer
  9. # to the Ghostscript General Public License for full details.
  10. #
  11. # Everyone is granted permission to copy, modify and redistribute
  12. # Ghostscript, but only under the conditions described in the Ghostscript
  13. # General Public License.  A copy of this license is supposed to have been
  14. # given to you along with Ghostscript so you can know your rights and
  15. # responsibilities.  It should be in a file named COPYING.  Among other
  16. # things, the copyright notice and this notice must be preserved on all
  17. # copies.
  18.  
  19. # makefile for Ghostscript, MS-DOS/Turbo C platform.
  20.  
  21. # ------------------------------- Options ------------------------------- #
  22.  
  23. ###### This section is the only part of the file you should need to edit.
  24.  
  25. # ------ Generic options ------ #
  26.  
  27. # Define the default directory/ies for the runtime
  28. # initialization and font files.  Separate multiple directories with \;.
  29. # Use \\ or / to indicate directories, not a single \.
  30.  
  31. GS_LIB_DEFAULT=c:/gs\;c:/gs/fonts
  32.  
  33. # Define the name of the Ghostscript initialization file.
  34. # (There is no reason to change this.)
  35.  
  36. GS_INIT=gs_init.ps
  37.  
  38. # Choose generic configuration options.
  39.  
  40. # Setting DEBUG=1 includes debugging features (-Z switch) in the code.
  41. # Code runs substantially slower even if no debugging switches are set,
  42. # and also takes about another 25K of memory.
  43.  
  44. DEBUG=0
  45.  
  46. # Setting NOPRIVATE=1 makes private (static) procedures and variables public,
  47. # so they are visible to the debugger and profiler.
  48. # No execution time or space penalty, just larger .OBJ and .EXE files.
  49.  
  50. NOPRIVATE=0
  51.  
  52. # Define the name of the executable file.
  53.  
  54. GS=gs
  55.  
  56. # ------ Platform-specific options ------ #
  57.  
  58. # If you don't have an assembler, set USE_ASM=0.  Otherwise, set USE_ASM=1,
  59. # and set ASM to the name of the assembler you are using.  This can be
  60. # a full path name if you want.  Normally it will be masm or tasm.
  61.  
  62. USE_ASM=1
  63. ASM=masm
  64.  
  65. # Define the drive and directory for the Turbo C files.
  66. # COMP is the compiler name (always tcc).
  67. # COMPDIR contains the compiler and linker (normally \tc).
  68. # BGIDIR contains the BGI files (normally \tc).
  69. #   BGIDIRSTR must be the same as BGIDIR with / substituted for \.
  70. # INCDIR contains the include files (normally \tc\include).
  71. # LIBDIR contains the library files (normally \tc\lib).
  72. # Note that these prefixes are always followed by a \,
  73. #   so if you want to use the current directory, use an explicit '.'.
  74.  
  75. COMP=tcc
  76. COMPDIR=c:\tc
  77. BGIDIR=c:\tc
  78. # BGIDIRSTR must be the same as BGIDIR with / substituted for \.
  79. BGIDIRSTR=c:/tc
  80. INCDIR=c:\tc\include
  81. LIBDIR=c:\tc\lib
  82.  
  83. # Choose platform-specific options.
  84.  
  85. # Define the processor (CPU) type.  Options are 86, 186, 286, 386, or 486.
  86. # (The 8086 and 8088 both correspond to processor type 86.)
  87. # 286 and up do not use protected mode.  Higher numbers produce
  88. # code that may be significantly smaller and faster, but the executable
  89. # will bail out with an error message on lower-numbered processor types.
  90.  
  91. CPU_TYPE=286
  92.  
  93. # Define the math coprocessor (FPU) type.
  94. # Options are -1 (optimize for no FPU), 0 (optimize for FPU present,
  95. # but do not require a FPU), 87, 287, or 387.
  96. # If the CPU type is 486, the FPU type is irrelevant, since the 80486
  97. # CPU includes the equivalent of an 80387 on-chip.
  98. # An xx87 option means that the executable will run only if a FPU
  99. # of that type (or higher) is available: this is NOT currently checked
  100. # at runtime.
  101.  
  102. FPU_TYPE=0
  103.  
  104. # ---------------------------- End of options ---------------------------- #
  105.  
  106. # Define the platform name.
  107.  
  108. PLATFORM=tbc_
  109.  
  110. # Define the name of the makefile -- used in dependencies.
  111.  
  112. MAKEFILE=tc.mak
  113.  
  114. # Define the ANSI-to-K&R dependency.  (Turbo C accepts ANSI syntax.)
  115.  
  116. AK=
  117.  
  118. # Define the compilation flags for an 80286.
  119.  
  120. F286=-1
  121.  
  122. !include "tccommon.mak"
  123.  
  124. # Define the compilation flags.
  125.  
  126. !if $(NOPRIVATE)
  127. CP=-DNOPRIVATE
  128. !else
  129. CP=
  130. !endif
  131.  
  132. !if $(DEBUG) | $(TDEBUG)
  133. CS=-N
  134. !else
  135. CS=
  136. !endif
  137.  
  138. !if $(DEBUG)
  139. CD=-DDEBUG
  140. !else
  141. CD=
  142. !endif
  143.  
  144. GENOPT=$(CP) $(CS) $(CD)
  145.  
  146. CCFLAGS0=$(GENOPT) $(PLATOPT) $(FPFLAGS)
  147. CCFLAGS=$(CCFLAGS0) -m$(MM)
  148. CC=$(COMPDIR)\$(COMP) -d -r -y -G -I$(INCDIR)
  149. CCC=$(CC) -a $(CCFLAGS) -O -c
  150. CCD=$(CCC)
  151. CCCF=$(CC) -a $(CCFLAGS0) -mh -O -c
  152. CCINT=$(CC) -a $(CCFLAGS) -c
  153.  
  154. .c.obj:
  155.     $(CCC) $<
  156.  
  157. # ------ Devices and features ------ #
  158.  
  159. # Choose the language feature(s) to include.  See gs.mak for details.
  160. # Note that because Turbo C doesn't use overlays,
  161. # we don't include any optional features.
  162.  
  163. FEATURE_DEVS=
  164.  
  165. # Choose the device(s) to include.  See devs.mak for details.
  166. # Note that because Turbo C doesn't use overlays,
  167. # we only include a limited set of device drivers.
  168.  
  169. DEVICE_DEVS=vga.dev ega.dev
  170. DEVICE_DEVS3=deskjet.dev
  171. DEVICE_DEVS5=epson.dev eps9high.dev ibmpro.dev bj10e.dev
  172. !include "gs.mak"
  173. !include "devs.mak"
  174.  
  175. # -------------------------------- Library -------------------------------- #
  176.  
  177. # The Turbo/Borland C(++) platform
  178.  
  179. tbc__=gp_itbc.$(OBJ) gp_dosfb.$(OBJ) gp_msdos.$(OBJ)
  180. tbc_.dev: $(tbc__)
  181.     $(SHP)gssetmod tbc_ $(tbc__)
  182.  
  183. # We have to compile gp_itbc without -1, because it includes a run-time
  184. # check to make sure we are running on the right kind of processor.
  185. gp_itbc.$(OBJ): gp_itbc.c $(string__h) $(gx_h) $(gp_h) $(MAKEFILE) makefile
  186.     $(CC) -a -m$(MM) $(GENOPT) -DCPU_TYPE=$(CPU_TYPE) -c gp_itbc.c
  187.  
  188. gp_dosfb.$(OBJ): gp_dosfb.c $(memory__h) $(gx_h) $(gp_h) $(gserrors_h) $(gxdevice_h)
  189.  
  190. gp_msdos.$(OBJ): gp_msdos.c $(dos__h) $(string__h) $(gx_h) $(gp_h)
  191.  
  192. # ----------------------------- Main program ------------------------------ #
  193.  
  194. BEGINFILES=
  195. CCBEGIN=$(CCC) *.c
  196.  
  197. # Get around the fact that the DOS shell has a rather small limit on
  198. # the length of a command line.  (sigh)
  199.  
  200. LIBCTR=libc$(MM).tr
  201.  
  202. $(LIBCTR): $(MAKEFILE) makefile echogs.exe
  203.     echogs -w $(LIBCTR) $(LIBDIR)\$(FPLIB)+
  204.     echogs -a $(LIBCTR) $(LIBDIR)\math$(MM) $(LIBDIR)\c$(MM)
  205.  
  206. LIBDOS=$(LIBGS) obj.tr
  207.  
  208. # Interpreter main program
  209.  
  210. GS_ALL=gs.$(OBJ) $(INT) $(INTASM) gsmain.$(OBJ)\
  211.   $(LIBDOS) $(LIBCTR) obj.tr lib.tr
  212.  
  213. $(GS)$(XE): $(GS_ALL) $(ALL_DEVS)
  214.     tlink /m /l $(LIBDIR)\c0$(MM) @obj.tr $(INTASM) @gs.tr ,$(GS),$(GS),@lib.tr @$(LIBCTR)
  215.